# stateID attribute syntax - 2 states, no Error

Use the following syntax to specify the stateID attribute - 2 states, no Error:

`stateId="enumeration"`

where enumeration is one of: 0 | 1

The released state is State 0. The selected state is State 1.

When the button's control tag value equals the value for this button, the button is in state 1. If the control tag is any other value, the button is in state 0.

## See also

stateID attribute - 2 states, no Error

enumeration